package com.hy.service;

import com.hy.utils.HY_Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "hy-gateway",contextId = "note")
public interface NoteService {

    /**
     * 发送短信 - 奕靜
     * @param phone
     * @return
     */
    @RequestMapping("hy-frontuser-provider/note/sendCode.do")
    HY_Result sendCode(@RequestParam String phone);

    /**
     * 发送验证码 - 华子
     * @param phone
     * @return
     */
    @RequestMapping("hy-frontuser-provider/note/send.action")
    HY_Result sendSms(@RequestParam String phone);

    /**
     * 短信验证码  验证
     * @param phone 手机号
     * @param verification_code 验证码
     * @return
     */
    @RequestMapping("hy-frontuser-provider/note/noteVerify.action")
    HY_Result noteVerify(@RequestParam String phone,@RequestParam String verification_code);

}
